<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="user-scalable=yes,width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0, target-densitydpi=medium-dpi">
    <meta name="format-detection" content="telephone=no"/> 
	<title>${code }/CNY&nbsp;交易图 - 币时代移动版</title>
   	<link rel="icon" href="../../../favicon.ico" type="image/x-icon"/> 
	<link rel="shortcut icon" href="../../../favicon.ico" type="image/x-icon"/> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
    <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>
    <div data-role="page">
 		
        <div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme="b">
            <a href="javascript:history.go(-1);" data-icon="back">返回</a>
		    <h1>${code }/CNY&nbsp;交易图</h1>
		    <a href="javascript:window.location.reload();" data-icon="refresh">刷新</a>
        </div>
        
        <div data-role="content" style="padding:0px;margin:0px;">
           	<div id="tradechart" style="padding:0px;margin:0px;">正在加载数据...</div>
        </div>
 		
        <div data-role="footer" data-position="fixed" data-tap-toggle="false" data-theme="b">
            <h4>&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2013 币时代版权所有</h4>
        </div>
        
        <script type="text/javascript" src="../../../js/highstock.js"></script>
	    <script type="text/javascript" src="../../../js/chart.js"></script>
	    <script type="text/javascript">
			basePrice = 1;
			if ('${secondCode}' == 'BTC') {
				basePrice = ${btcPrice};
			} else {
				basePrice = ${ltcPrice};
			}
	    	$(function() {
				initHighChartsTheme();
				initStockChart(${marketId});
			});
		</script>
    </div>
</body>
</html>
